package com.ruoyi.modules.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.modules.mapper.AuditFlowLogMapper;
import com.ruoyi.modules.domain.AuditFlowLog;
import com.ruoyi.modules.service.IAuditFlowLogService;

/**
 * 申报审核日志Service业务层处理
 * 
 * @author ssh
 * @date 2024-12-15
 */
@Service
public class AuditFlowLogServiceImpl implements IAuditFlowLogService 
{
    @Autowired
    private AuditFlowLogMapper auditFlowLogMapper;

    /**
     * 查询申报审核日志
     * 
     * @param id 申报审核日志主键
     * @return 申报审核日志
     */
    @Override
    public AuditFlowLog selectAuditFlowLogById(Long id)
    {
        return auditFlowLogMapper.selectAuditFlowLogById(id);
    }

    /**
     * 查询申报审核日志列表
     * 
     * @param auditFlowLog 申报审核日志
     * @return 申报审核日志
     */
    @Override
    public List<AuditFlowLog> selectAuditFlowLogList(AuditFlowLog auditFlowLog)
    {
        return auditFlowLogMapper.selectAuditFlowLogList(auditFlowLog);
    }

    /**
     * 新增申报审核日志
     * 
     * @param auditFlowLog 申报审核日志
     * @return 结果
     */
    @Override
    public int insertAuditFlowLog(AuditFlowLog auditFlowLog)
    {
        auditFlowLog.setCreateTime(DateUtils.getNowDate());
        return auditFlowLogMapper.insertAuditFlowLog(auditFlowLog);
    }

    /**
     * 修改申报审核日志
     * 
     * @param auditFlowLog 申报审核日志
     * @return 结果
     */
    @Override
    public int updateAuditFlowLog(AuditFlowLog auditFlowLog)
    {
        auditFlowLog.setUpdateTime(DateUtils.getNowDate());
        return auditFlowLogMapper.updateAuditFlowLog(auditFlowLog);
    }

    /**
     * 批量删除申报审核日志
     * 
     * @param ids 需要删除的申报审核日志主键
     * @return 结果
     */
    @Override
    public int deleteAuditFlowLogByIds(Long[] ids)
    {
        return auditFlowLogMapper.deleteAuditFlowLogByIds(ids);
    }

    /**
     * 删除申报审核日志信息
     * 
     * @param id 申报审核日志主键
     * @return 结果
     */
    @Override
    public int deleteAuditFlowLogById(Long id)
    {
        return auditFlowLogMapper.deleteAuditFlowLogById(id);
    }
}
